﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Masood.SharePoint.ProcessingTimerJob.Interfaces;

namespace Masood.SharePoint.ProcessingTimerJob.Repositories
{
    public class TestRepository : IRepository
    {
        private string repoType;
        public TestRepository(string repositoryType)
        {
            this.repoType = repositoryType;
        }

        public string RepositoryType
        {
            get { return repoType; }
        }

        public List<Item> GetAll()
        {
            List<Item> items = new List<Item>();
            Item item = null;

            item = new Item();
            item.Id = 1;
            item.Title = "Item " + item.Id;
            items.Add(item);

            item = new Item();
            item.Id = 2;
            item.Title = "Item " + item.Id;
            items.Add(item);

            item = new Item();
            item.Id = 3;
            item.Title = "Item " + item.Id;
            items.Add(item);
            
            item = new Item();
            item.Id = 4;
            item.Title = "Item " + item.Id;
            items.Add(item);

            item = new Item();
            item.Id = 5;
            item.Title = "Item " + item.Id;
            items.Add(item);

            return items;
        }
       
        public void UpdateStatus(int id, string message)
        {
            //implement your method to update for logging purpose
        }
    }
}
